<?php
class RecomUserManageAction extends Action{
	
    public function recomManage(){    	
    	$this->assign("smarty",'/manage/page/marketingmanage/userincomemanage/recomusermanage.html');
        return $this->SMARTY;
    }
    //分页查询提现数据
    public function queryUserRecom(){
    	global $param;
    	$params = $param->getParams();
    	tsLoad('/manage/busi/RecomUserPage.class.php');
    	
    	//收集当前传入的当前页信息
    	if($params['page']!=null)
    		$currentPage = $params['page'];
    	else
    		$currentPage =1;
    	//收集当前传入的一页多少条信息
    	if($params['rows']!=null)
    		$countPage = $params['rows'];
    	else
    		$countPage =10;
    	$recomUserPage = new RecomUserPage();
    	$pageInfo = $recomUserPage->initPage($params, $countPage, $currentPage);
    	$rows = $recomUserPage->getCurPageData();
    	
    	$this->assign("total",$pageInfo['countRow']);
    	$this->assign("rows",$rows);
    	return $this->JSON;
    }
    //获取余额
    public function getAllMo(){
    	global $param;
    	$params = $param->getParams();
    	tsLoad('/manage/busi/RecomUserPage.class.php');
    	 
    	$recomUserPage = new RecomUserPage();
    	$totalMo = $recomUserPage->getAllUserInFMo($params);
    	$this->assign("totalMo",$totalMo);
    	return $this->JSON;
    }    

}
?>